<table border="1">
    <tr>
        <th>County</th>
        <th>City</th>
        <th>Population</th>
        <th>Percent male</th>
        <th>Urban</th>
    </tr>
    {foreach from=$cities item=c}
    <tr>
        <td>
            {$c.County}
        </td>
        <td>
            {$c.City}
        </td>
        <td>
            {$c.City_population}
        </td>
        <td>
            {$c.City_percent_male}
        </td>
        <td>
            {if $c.Urban}
                Yes
            {else}
                No
            {/if}
        </td>
        <td>
            <a href="#city_modify" class="city_modify" data-id="{$c.City_id}" data-population="{$c.City_population}" data-percent-male="{$c.City_percent_male}" data-urban="{$c.Urban}" data-name="{$c.City}" >Modify</a>
        </td>
        <td>
            <a href="#" class="city_delete" data-id="{$c.City_id}" >Delete</a>
        </td>
    </tr>
    {/foreach}
</table>